<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <!-- v-text&v-html就类似于innerText和innerHtml -->
  <!-- 准备好一个容器-->
  <div id="app">
    <div>{{message}}</div>
    <div v-text="message">Hello</div>
    <div v-html="message">Hello</div>
    <div v-html="url">Hello</div>
  </div>
  <script src="vue.js"></script>
  <script>
    Vue.config.productionTip = false //阻止 vue 在启动时生成生产提示。
    //创建vue实例
    new Vue({
      el: '#app',
      data: {
        message: '<h3>你好</h3>',
        url: '<a href="http://www.baidu.com">百度</a>'
      }
    })
  </script>
</body>

</html>